package com.atguigu.webflux.schema;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import java.util.Optional;

public class FlightStep3Form {
  @JsonProperty("buyFlights.x")
  private int buyFlightsX;

  @JsonProperty("buyFlights.y")
  private int buyFlightsY;

  private String seatPref;
  private String seatType;
  private String firstName;
  private String lastName;
  private String address1;
  private String address2;
  private String pass1;
  private String creditCard;
  private String expDate;
  private String oldCCOption;
  private String outboundFlight;
  private String returnFlight;
  private String JSFormSubmit;
  private int advanceDiscount;
  private int numPassengers;
  private Long userId;
  @JsonProperty(".cgifields")
  private List<String> cgifields;

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public Optional<List<String>> getCgifields() {
    return Optional.ofNullable(cgifields);
  }

  public void setCgifields(List<String> cgifields) {
    this.cgifields = cgifields;
  }

  public int getBuyFlightsX() {
    return buyFlightsX;
  }

  public void setBuyFlightsX(int buyFlightsX) {
    this.buyFlightsX = buyFlightsX;
  }

  public int getBuyFlightsY() {
    return buyFlightsY;
  }

  public void setBuyFlightsY(int buyFlightsY) {
    this.buyFlightsY = buyFlightsY;
  }

  public String getSeatPref() {
    return seatPref;
  }

  public void setSeatPref(String seatPref) {
    this.seatPref = seatPref;
  }

  public String getSeatType() {
    return seatType;
  }

  public void setSeatType(String seatType) {
    this.seatType = seatType;
  }

  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public String getAddress1() {
    return address1;
  }

  public void setAddress1(String address1) {
    this.address1 = address1;
  }

  public String getAddress2() {
    return address2;
  }

  public void setAddress2(String address2) {
    this.address2 = address2;
  }

  public String getPass1() {
    return pass1;
  }

  public void setPass1(String pass1) {
    this.pass1 = pass1;
  }

  public String getCreditCard() {
    return creditCard;
  }

  public void setCreditCard(String creditCard) {
    this.creditCard = creditCard;
  }

  public String getExpDate() {
    return expDate;
  }

  public void setExpDate(String expDate) {
    this.expDate = expDate;
  }

  public String getOldCCOption() {
    return oldCCOption;
  }

  public void setOldCCOption(String oldCCOption) {
    this.oldCCOption = oldCCOption;
  }

  public String getOutboundFlight() {
    return outboundFlight;
  }

  public void setOutboundFlight(String outboundFlight) {
    this.outboundFlight = outboundFlight;
  }

  public String getReturnFlight() {
    return returnFlight;
  }

  public void setReturnFlight(String returnFlight) {
    this.returnFlight = returnFlight;
  }

  public String getJSFormSubmit() {
    return JSFormSubmit;
  }

  public void setJSFormSubmit(String jSFormSubmit) {
    JSFormSubmit = jSFormSubmit;
  }

  public int getAdvanceDiscount() {
    return advanceDiscount;
  }

  public void setAdvanceDiscount(int advanceDiscount) {
    this.advanceDiscount = advanceDiscount;
  }

  public int getNumPassengers() {
    return numPassengers;
  }

  public void setNumPassengers(int numPassengers) {
    this.numPassengers = numPassengers;
  }
}
